<template>
	<view class="bg">
		<view class="fd icon">
			<image src="../../static/home.png" mode="" @click="home"></image>
			<image src="../../static/xinxi.png" @click="remen" mode=""></image>
		</view>
		<view class="box">
			<view class="box_left">
				<image src="../../static/tx.png" mode=""></image>
				<text>用户01</text>
			</view>
			<view class="minbtn">
				<u-button type="primary" color="#F5C7A6" shape="circle" text="编辑资料"></u-button>
			</view>
		</view>
		<view class="list">
			<u-cell-group :border='false'>
				<u-cell title="我的收藏" customStyle="{'font-size': '30rpx'}" color="#F5C7A6" :border='true'>
					<u-icon slot="icon" size="40" color="#F5C7A6"
						name="https://njyyl.oss-cn-hangzhou.aliyuncs.com/data-monitor/sc.png"></u-icon>
					<u-icon slot="right-icon" color="#858BA3" size="32" name="arrow-right"></u-icon>
				</u-cell>
				<u-cell title="我的消息">
					<u-icon slot="icon" size="40" color="#F5C7A6"
						name="https://njyyl.oss-cn-hangzhou.aliyuncs.com/data-monitor/xx.png"></u-icon>
					<u-icon slot="right-icon" size="32" color="#858BA3" name="arrow-right"></u-icon>
				</u-cell>
				<u-cell title="客服联系">
					<u-icon slot="icon" size="40" color="#F5C7A6"
						name="https://njyyl.oss-cn-hangzhou.aliyuncs.com/data-monitor/kf.png"></u-icon>
					<u-icon slot="right-icon" size="32" color="#858BA3" name="arrow-right"></u-icon>
				</u-cell>
				<u-cell title="帮助与反馈">
					<u-icon slot="icon" size="40" color="#F5C7A6"
						name="https://njyyl.oss-cn-hangzhou.aliyuncs.com/data-monitor/yw.png"></u-icon>
					<u-icon slot="right-icon" size="32" color="#858BA3" name="arrow-right"></u-icon>
				</u-cell>
				<u-cell title="设置">
					<u-icon slot="icon" size="40" color="#F5C7A6"
						name="https://njyyl.oss-cn-hangzhou.aliyuncs.com/data-monitor/sz.png"></u-icon>
					<u-icon slot="right-icon" size="32" color="#858BA3" name="arrow-right"></u-icon>
				</u-cell>
			</u-cell-group>
		</view>
	</view>
</template>

<script>
	import axios from 'axios'
	export default {
		data() {
			return {

			}
		},
		onLoad() {

		},
		methods: {
			click(e) {
				console.log(e)
				for (let i = 0; i < this.list1.length; i++) {
					if (i == this.current) {
						window.location.href = this.list1[i].link
					}
				}

			},
			aa(e) {
				console.log(e.current)
				this.current = e.current
			},
			home() {
				uni.navigateTo({
					url: '/pages/index/index'
				})
			},
			// 复制文本到粘贴板
			copy(value) {
				//提示模板
				uni.showModal({
					content: '确认复制？', //模板中提示的内容
					confirmText: '确认',
					success: (res) => { //点击复制内容的后调函数
						if (res.confirm) {
							uni.setClipboardData({
								data: value, //要被复制的内容
								success: () => { //复制成功的回调函数
									uni.$showMsg('复制成功')
								}
							});
						} else if (res.cancel) {
							console.log('用户点击取消');
						}
					}
				})
			},
			remen() {
				uni.navigateTo({
					url: '/pages/index/problem'
				})
			},

		}
	}
</script>

<style lang="scss">
	page {
		background-color: #20243C;
	}

	.u-line {
		border-bottom: 3rpx solid #20243C !important;
	}

	.u-cell__title-text {
		color: #F5C7A6 !important;
	}

	.u-cell__body {
		padding: 48rpx 0 !important;
	}

	.u-cell__left-icon-wrap {
		margin-right: 31.5rpx !important;
	}

	.bg {
		width: 100%;

		.icon {
			width: 90%;
			margin: 0 auto;
			padding-top: 33rpx;
			box-sizing: border-box;

			image {
				width: 48rpx;
				height: 48rpx;
			}

		}

		.list {
			width: 100%;
			padding: 0 5%;
			box-sizing: border-box;
			margin: 0 auto;
			background-color: #30324C;
		}
	}

	.box {

		width: 90%;
		margin: 0 auto;
		margin-top: 42.9rpx;
		margin-bottom: 48rpx;
		border-radius: 10rpx;
		padding: 24rpx;
		box-sizing: border-box;
		display: flex;
		justify-content: space-between;

		image {
			width: 110rpx;
			height: 110rpx;
			margin-right: 33rpx;
		}

		background: url('https://njyyl.oss-cn-hangzhou.aliyuncs.com/data-monitor/minbg.png') no-repeat;
		background-size: 100% 100%;
		.box_left{
			display: flex;
			color: #F5C7A6;
			font-size: 32rpx;
			font-weight: 600;
			margin-bottom: 92rpx;
		}
	}
</style>